﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="content" >
	<div class="content_bg" >
		<!--Phan register-->
		<div class="content_bg_bott" >
            <h1>Create a New Account</h1>
            <p>Use the form below to create a new account.</p>
            <p>Passwords are required to be a minimum of <%: ViewData["PasswordLength"] %> characters in length.</p>
            
            <div class="cbb_register">
					
                <% using (Html.BeginForm()) { %>
                    <div class="warning_login">
                        <%: Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
					</div>
                    <table cellpadding="5" class="table_register" width="100%">
						<tr>
							<td><%: Html.LabelFor(m => m.UserName) %></td>
							<td>
                                <%: Html.TextBoxFor(m => m.UserName, new { @class = "control_input" })%>
                                <%: Html.ValidationMessageFor(m => m.UserName) %>
                            </td>
						</tr>

                        <tr>
							<td><%: Html.LabelFor(m => m.Email) %></td>
							<td>
                                <%: Html.TextBoxFor(m => m.Email, new { @class = "control_input" })%>
                                <%: Html.ValidationMessageFor(m => m.Email) %>
                            </td>
						</tr>

						<tr>
							<td><%: Html.LabelFor(m => m.Password) %></td>
							<td>
                                <%: Html.PasswordFor(m => m.Password, new { @class = "control_input" })%>
                                <%: Html.ValidationMessageFor(m => m.Password) %>
                            </td>
						</tr>
						<tr>
							<td><%: Html.LabelFor(m => m.ConfirmPassword) %></td>
							<td>
                                <%: Html.PasswordFor(m => m.ConfirmPassword, new { @class = "control_input" })%>
                                <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                            </td>
						</tr>
                            
						<tr>
							<td>&nbsp;</td>
							<td align="left">
								<input type="submit" class="button_user"  value="Register"/>
							</td>
						</tr>
					</table>
                <% } %>
            </div>
            <div class='clear'></div>
        </div>
    </div>
</div>
   
</asp:Content>
